package com.sac.approval.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.sac.approval.dao.ApprovalLineTemplateDao;
import com.sac.approval.domain.ApprovalLineTemplateDO;
import com.sac.approval.service.ApprovalLineTemplateService;



@Service
public class ApprovalLineTemplateServiceImpl implements ApprovalLineTemplateService {
	@Autowired
	private ApprovalLineTemplateDao approvalLineTemplateDao;
	
	@Override
	public ApprovalLineTemplateDO get(String appTemplateLineId){
		return approvalLineTemplateDao.get(appTemplateLineId);
	}
	
	@Override
	public List<ApprovalLineTemplateDO> list(Map<String, Object> map){
		return approvalLineTemplateDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return approvalLineTemplateDao.count(map);
	}
	
	@Override
	public int save(ApprovalLineTemplateDO approvalLineTemplate){
		return approvalLineTemplateDao.save(approvalLineTemplate);
	}
	
	@Override
	public int update(ApprovalLineTemplateDO approvalLineTemplate){
		return approvalLineTemplateDao.update(approvalLineTemplate);
	}
	
	@Override
	public int remove(String appTemplateLineId){
		return approvalLineTemplateDao.remove(appTemplateLineId);
	}
	
	@Override
	public int batchRemove(String[] appTemplateLineIds){
		return approvalLineTemplateDao.batchRemove(appTemplateLineIds);
	}
	
}
